import { request } from "@/utils/http"
// 加入购物车
export const insertCart = ({ skuId, count }) =>
  request.post('/member/cart', {
    skuId,
    count
  })

// 获取购物车列表
export const getCartList = () =>
  request.get('/member/cart')

// 删除购物车
export const deleteCart = (ids) =>
  request.delete('/member/cart', { data: { ids } })

// 合并本地购物车
export const mergeCart = (data) => request.post('/member/cart/merge', data)
